﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FontManager
{
    /// <summary>
    /// This class is used to filter character list.
    /// This class coresponds to the XML file and is used as class mirror image to it.
    /// </summary>
    public class Filter
    {
        public string Name = "newFilter";
        public string Characters = "";
        public int Count = 0;
        public List<string> HexsValueList = new List<string>();

        public Filter()
        { }

        public Filter(string name, string characters)
        {
            this.Name = name;
            this.Characters = characters;
            this.Count = Characters.Length;

            foreach(char i in Characters)
            {
                char c = i;
                int unicode = c;
                HexsValueList.Add(string.Format("0x{0:x4}", unicode));
            }
        }
    }
}
